package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.Publication;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by zhangjh 2016/10/14.
 */
@Repository
public interface PublicationRepository extends JpaRepository<Publication, Long>, JpaSpecificationExecutor {
    List<Publication> findByMallIdOrderBySeqNoAsc(Long mallId);
}
